package cn.kevinking.common.util;

import lombok.experimental.UtilityClass;

import javax.crypto.spec.SecretKeySpec;
import java.security.Key;
import java.util.Base64;

/**
 * utility class for cipher
 *
 * @author kevinking
 * @since 22 Jun 2025
 */
@UtilityClass
public class BfzCipherUtils {

	public static final String AES = "AES";

	public static Key secretByAes(String secretKey) {
		return new SecretKeySpec(BfzBase64Utils.decode(secretKey), AES);
	}
}
